package com.shop.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.entity.dto.AdminStyle.AdminStyleListDto;
import com.shop.entity.pojo.Style;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StyleMapper extends BaseMapper<Style> {

    Page<Style> stylePageByWaresId(@Param("page") Page<Style> page,@Param("waresId") Long waresId);

    Page<Style> getAllByPage(@Param("page") Page<Style> page,@Param("dto") AdminStyleListDto dto);

    List<Style> getList(@Param("style")Style style);

    Style getOne(@Param("id")Long id);

    boolean updateIsDelete(@Param("style")Style style);

    int saveStyle(@Param("style") Style style);
}
